package com.rock.securityresearch.util

import com.github.tototoshi.csv.CSVReader
import com.github.tototoshi.csv.defaultCSVFormat
import java.io.{InputStream, InputStreamReader}

object CsvUtil {
    def read(data: InputStream, charSet:String = "utf-8"): List[List[String]] = {
        val reader = CSVReader.open(InputStreamReader(data, charSet))
        reader.all()
    }
}
